<?php
$this->pageTitle=Yii::app()->name . ' - 系统错误';
?>

<div class="h8"></div>
<!-- 通栏-->
<div class="detailContent-title">
    <?php if(isset($this->breadcrumbs)):?>
        <?php $this->widget('zii.widgets.CBreadcrumbs', array(
        'htmlOptions'=>array('class'=>'local'),
        'separator'=>'&nbsp;&gt;&nbsp;',
        'links'=>array(
            (isset($code)?$code:'').'错误',
        ),
        'homeLink'=>'当前位置：错误页面',
        'tagName'=>'span',
    )); ?><!-- breadcrumbs -->
    <?php endif?>
</div>

<div class="detailContent">
    <div class="message"><?php echo isset($message) ? $message : '';?></div>
    <p>&nbsp;</p>
    <?php
    if(isset($direct)){
        echo '<a id="button" href="'.$direct.'">返回</a>';
    }else{
        if(empty($_SERVER['HTTP_REFERER'])){
            echo '<a id="button" href="/">返回首页</a>';
        } else{
            echo '<a id="button" href="'.$_SERVER['HTTP_REFERER'].'">返回上页</a>';
        }
    }

    ?>
    <div class="celar"></div>
</div>

<div class="h8"></div>